type runtime.spanClass
19 uses
runtime (current package)
malloc.go#L919: func (c *mcache) nextFree(spc spanClass) (v gclinkptr, s *mspan, shouldhelpgc bool) {
mcache.go#L147: func (c *mcache) refill(spc spanClass) {
mcache.go#L274: atomic.Xadd64(&stats.smallAllocCount[spanClass(i).sizeclass()], slotsUsed)
mcentral.go#L23: spanclass spanClass
mcentral.go#L48: func (c *mcentral) init(spc spanClass) {
mgcsweep.go#L92: func (s sweepClass) split() (spc spanClass, full bool) {
mgcsweep.go#L93: return spanClass(s >> 1), s&1 == 0
mheap.go#L486: spanclass spanClass // size class and noscan (uint8)
mheap.go#L570: type spanClass uint8
mheap.go#L574: tinySpanClass = spanClass(tinySizeClass<<1 | 1)
mheap.go#L577: func makeSpanClass(sizeclass uint8, noscan bool) spanClass {
mheap.go#L578: return spanClass(sizeclass<<1) | spanClass(bool2int(noscan))
mheap.go#L581: func (sc spanClass) sizeclass() int8 {
mheap.go#L585: func (sc spanClass) noscan() bool {
mheap.go#L776: h.central[i].mcentral.init(spanClass(i))
mheap.go#L957: func (h *mheap) alloc(npages uintptr, spanclass spanClass) *mspan {
mheap.go#L1175: func (h *mheap) allocSpan(npages uintptr, typ spanAllocType, spanclass spanClass) (s *mspan) {
mheap.go#L1381: func (h *mheap) initSpan(s *mspan, typ spanAllocType, spanclass spanClass, base, npages uintptr) {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |